package com.ruoyi.kiku.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kiku.mapper.KikuOrangeSupportMapper;
import com.ruoyi.kiku.domain.KikuOrangeSupport;
import com.ruoyi.kiku.service.IKikuOrangeSupportService;

/**
 * 橘子应援信息Service业务层处理
 * 
 * @author TT
 * @date 2025-07-31
 */
@Service
public class KikuOrangeSupportServiceImpl implements IKikuOrangeSupportService 
{
    @Autowired
    private KikuOrangeSupportMapper kikuOrangeSupportMapper;

    /**
     * 查询橘子应援信息
     * 
     * @param id 橘子应援信息主键
     * @return 橘子应援信息
     */
    @Override
    public KikuOrangeSupport selectKikuOrangeSupportById(Long id)
    {
        return kikuOrangeSupportMapper.selectKikuOrangeSupportById(id);
    }

    /**
     * 查询橘子应援信息列表
     * 
     * @param kikuOrangeSupport 橘子应援信息
     * @return 橘子应援信息
     */
    @Override
    public List<KikuOrangeSupport> selectKikuOrangeSupportList(KikuOrangeSupport kikuOrangeSupport)
    {
        return kikuOrangeSupportMapper.selectKikuOrangeSupportList(kikuOrangeSupport);
    }

    /**
     * 新增橘子应援信息
     * 
     * @param kikuOrangeSupport 橘子应援信息
     * @return 结果
     */
    @Override
    public int insertKikuOrangeSupport(KikuOrangeSupport kikuOrangeSupport)
    {
        kikuOrangeSupport.setCreateTime(DateUtils.getNowDate());
        return kikuOrangeSupportMapper.insertKikuOrangeSupport(kikuOrangeSupport);
    }

    /**
     * 修改橘子应援信息
     * 
     * @param kikuOrangeSupport 橘子应援信息
     * @return 结果
     */
    @Override
    public int updateKikuOrangeSupport(KikuOrangeSupport kikuOrangeSupport)
    {
        kikuOrangeSupport.setUpdateTime(DateUtils.getNowDate());
        return kikuOrangeSupportMapper.updateKikuOrangeSupport(kikuOrangeSupport);
    }

    /**
     * 批量删除橘子应援信息
     * 
     * @param ids 需要删除的橘子应援信息主键
     * @return 结果
     */
    @Override
    public int deleteKikuOrangeSupportByIds(Long[] ids)
    {
        return kikuOrangeSupportMapper.deleteKikuOrangeSupportByIds(ids);
    }

    /**
     * 删除橘子应援信息信息
     * 
     * @param id 橘子应援信息主键
     * @return 结果
     */
    @Override
    public int deleteKikuOrangeSupportById(Long id)
    {
        return kikuOrangeSupportMapper.deleteKikuOrangeSupportById(id);
    }
}
